
<% if mobile? %>
<section class="mobile-addresses-index">
  <% content_for :mobile_menu do %>
  <a href=""></a>
  <% end %>
  <% content_for :app_back do %>
  <a href="/">
    <i class="icon-arrow-left"></i>
  </a>
  <% end %>
  <% content_for :app_title do %>
    <ul class="mine-tabs">
      <li class="<%= 'active' if request.path =~ /dashboard\/orders/ %>"><a href="/dashboard/orders">我的订单</a></li>
      <li class="<%= 'active' if request.path =~ /dashboard\/addresses/ %>"><a href="/dashboard/addresses">我的地址</a></li>
    </ul>
  <% end %>
  <% content_for :app_action do %>
  <a href=""></a>
  <% end %>
  <hr class="line">

  <addresses :page-type="'dashboard'"/>
</section>
<% else %>
<% breadcrumb :dashboard_addresses %>

<div class="dashboard-addresses-index">
  <div class="row menu-list-row">
    <div class="col-sm-3">
      <%= render partial: 'dashboard/left_menu' -%>
    </div>

    <div class="col-sm-9">
      <h3>我的收货地址</h3>
      <div class="panel">
        <div class="panel-body padding-reset">
          <addresses :page-type="'dashboard'"/>
        </div>
      </div>
    </div>
  </div>
</div>
<% end %>
